package com.edu.cqr.web.demo.mapper;

import com.edu.cqr.web.demo.model.RoomOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoomOrderMapper {
    int deleteByPrimaryKey(Long roomOrderNum);

    int insert(RoomOrder record);

    int insertSelective(RoomOrder record);

    RoomOrder selectByPrimaryKey(Long roomOrderNum);

    int updateByPrimaryKeySelective(RoomOrder record);

    int updateByPrimaryKey(RoomOrder record);

    /**
     * 根据顾客姓名获取订单流水号
     *
     * @param customerName
     * @return
     */
    Long selectRoomOrderNumByCustomerName(@Param("customerName") String customerName);

    void insert(com.edu.fjzzit.web.myhotel.model.RoomOrder roomOrder);
}